package com.dyn.videohub.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel(value = "用户令牌")
@TableName("user_token")
public class UserToken {
    @ApiModelProperty("会话id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户令牌")
    private String token;

    @ApiModelProperty("用户令牌")
    private Long userId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("过期时间")
    private Date expireTime;
}
